<template>
  <div>
    <div class="title">{{busniessName}}</div>
    <pt-photo class="photo" :size="58"/>
  </div>
</template>
<script>
export default {
  data() {
    return {
      busniessName: ''
    }
  },
  mounted() {
    const query = this.$route.query
    if (!query.id) {
      this.$message.error('数据异常，请从商家列表入口进入对应的商家相册页面！')
      this.$router.back()
    } else {
      this.busniessName = query.name
    }
  }
}
</script>
<style lang="scss" scoped>
  .title{
    height: 40px;
    line-height: 40px;
    margin-bottom: 20px;
    padding: 0 15px;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
  }
</style>
